<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<div class="header">
	<h2>
		流程关联映射信息<span><font color="red">（* 为必填项）</font> </span>
	</h2>
</div>
<form:form commandName="model" cssClass="validate"
	id="relationProcessMapForm" action="bpm/relationProcessMap/save">
	<form:hidden path="id" />
	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">标题：</td>
				<td class="td2"><form:input path="title" cssClass="required"
						cssStyle="width:60%" />
				</td>
			</tr>
			<tr>
				<td class="td1">发起流程：</td>
				<td class="td2"><form:hidden path="fromProcessKey" /> <isperp:listSelector
						id="fromProcessName" name="fromProcessName"
						valueControlId="fromProcessKey"
						url="bpm/processSetting/listDetail"
						displayValue="${model.fromProcessName }"
						displayValueCssClass="required" displayColumn="deployment_name"
						valueColumn="act_re_procdef_key">
						<isperp:column name="id" title="id" hidden="true"></isperp:column>
						<isperp:column name="deployment_id" title="deployment_id"
							hidden="true">
						</isperp:column>
						<isperp:column name="act_re_procdef_key"
							title="act_re_procdef_key" hidden="true">
						</isperp:column>
						<isperp:column name="deployment_name" title="名称" width="120"></isperp:column>
						<isperp:column name="procedef_version" title="版本" width="40">
						</isperp:column>
						<isperp:column name="modifier_name" title="修改者" width="60">
						</isperp:column>
						<isperp:column name="modify_date" title="修改时间" width="90">
						</isperp:column>

					</isperp:listSelector>
				</td>
			</tr>
			<tr>
				<td class="td1">目标流程：</td>
				<td class="td2"><form:hidden path="toProcessKey" /> <isperp:listSelector
						id="toProcessName" name="toProcessName"
						displayValue="${model.toProcessName }"
						valueControlId="toProcessKey" displayValueCssClass="required"
						url="bpm/processSetting/listDetail"
						displayColumn="deployment_name" valueColumn="act_re_procdef_key">
						<isperp:column name="id" title="id" hidden="true"></isperp:column>
						<isperp:column name="deployment_id" title="deployment_id"
							hidden="true">
						</isperp:column>
						<isperp:column name="act_re_procdef_key"
							title="act_re_procdef_key" hidden="true">
						</isperp:column>
						<isperp:column name="deployment_name" title="名称" width="120"></isperp:column>
						<isperp:column name="procedef_version" title="版本" width="40">
						</isperp:column>
						<isperp:column name="modifier_name" title="修改者" width="60">
						</isperp:column>
						<isperp:column name="modify_date" title="修改时间" width="90">
						</isperp:column>

					</isperp:listSelector>
				</td>
			</tr>


			<tr>
				<td class="td1">排序：</td>
				<td class="td2"><form:input path="orderNum" cssClass="number" />
				</td>
			</tr>

		</tbody>
	</table>
</form:form>
<div class="header">
	<h2>
		流程关联映射字段<span><font color="red">（* 为必填项）</font> </span>
	</h2>
</div>

<isperp:grid
	url="bpm/relationProcessMapField/list?relationProcessMapId=${model.id }"
	gridId="relationProcessMapFieldGrid" showSearchbar="false"
	cusDialogSize="normal"
	beforeCreateAction="'relationProcessMapId=${model.id }'"
	ondbClickRowEvent="relationProcessMapFieldGrid.edit(rowid);"
	cusEditUrl="bpm/relationProcessMapField/edit"
	cusDeleteUrl="bpm/relationProcessMapField/delete">
	<jsp:attribute name="toolbar">
		<isperp:toolbar id="relationProcessMapFieldToolbar">
			<isperp:button id="relationProcessMapFieldCreate" icon="icon-plus"
				text="新增流程关联映射字段" cssClass="nui-mainbtn"
				onclick="if($('#relationProcessMapForm').valid()){ relationProcessMapFieldGrid.create();}"></isperp:button> 
				 			
		</isperp:toolbar>
	</jsp:attribute>


	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="toField" title="映射字段" width="80">
	</isperp:column>
	 
	<isperp:column name="toTemplate" title="映射模板" width="300">
	</isperp:column>
		 
	<isperp:column name="orderNum" title="排序" width="40">
	</isperp:column>
	</jsp:body>
</isperp:grid>

<isperp:buttonList>
	<button class="submit nui-mainbtn" onclick="isperp.submitForm();">保存</button>
</isperp:buttonList>
